<template>
	<view class="profile"	>
		<login v-if="!token"></login>
		<user-info v-else></user-info>
	</view>
</template>

<script>
	import BadgeMixin from '../../mixins/badge-mixin.js'
	
	import { mapState } from 'vuex'
	
	import Login from '../../components/Login/Login.vue'
	import UserInfo from '../../components/UserInfo/UserInfo.vue'
	export default {
		mixins: [BadgeMixin],
		data() {
			return {

			}
		},
		components: {
			Login,
			UserInfo
		},
		methods: {

		},
		computed: {
			...mapState('user',['token'])
		}
	}
</script>

<style>

</style>
